from ronglian_sms_sdk import SmsSDK

accId = '8aaf070878d419aa017901c8dd32124a'
accToken = '095502c8c00f40faa585474b58b42da6'
appId = '8aaf070878d419aa017901c8de251251'
sdk = SmsSDK(accId, accToken, appId)


def send_message():
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = '17550656315'
    datas = ('123456',5)
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)

    import json
    data = json.loads(resp)

    if data.get('statusCode') == '000000':
        print('发送成功')

    else:
        print('发送失败')
send_message()